﻿@using Controllers
@using Models
@using PetaPoco
@using Controllers
@{
    var func=new MyFunc();
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@Html.Partial("_top")
</head>
<body>
@Html.Partial("_header")
<main>
<div class="position"><div class="box">您的当前位置：@Html.Raw(ViewBag.model.cur)</div></div>
<div class="sidebar box">
@Html.Partial("_left")
  <div class="sb_box">
    <h3 class="title">@ViewBag.model.title</h3>

    <div class="editor">
	<form action="/tou/?id=1" method="post">
      @Html.Raw(ViewBag.model.content)
	  <div>您是如何知道我们网站的</div>
	  @{var toupiao=func.GetToupiaoList(cid:1);}
	  @for(var i=0;i<toupiao.Count;i++){
		<input type="radio" name="toupiao" value="@toupiao[i].ID" id="@("toupiao"+toupiao[i].ID)" /><label for="@("toupiao"+toupiao[i].ID)">@toupiao[i].title</label>
	  }
	  <input type="submit" value="提交" />
	  </form>
      <div class="clear"></div>
    </div>
  </div>
  <div class="clear"></div>
</div>
</main>
		<footer>
			<div class="box">@Html.Raw(ViewBag.model.copyright)</div>
		</footer>
</body>
</html>
